//
//  BasePresenter.m
//  DebugDemo
//
//  Created by XFB on 2019/5/8.
//  Copyright © 2019 ZhouCheng. All rights reserved.
//

#import "BasePresenter.h"

@implementation BasePresenter

/**
 初始化函数
 
 @param view 要绑定的视图
 @return <#return value description#>
 */
- (instancetype)initWithView:(id)view
{
    self = [super init];
    if (self) {
        _view = view;
    }
    return self;
}


/**
 绑定视图

 @param view <#view description#>
 */
- (void)attachView:(id)view
{
    _view = view;
}


/**
 解绑视图
 */
- (void)detachView
{
    _view = nil;
}

@end
